
   <script type="text/javascript">
		function func_back(){
			$("#main_form").prop("action", "inputSubject");
			return $("#main_form").submit();
		}
   </script>	
   <div id="main_div">	
   		
  		<form id="main_form" method="post" action="registSubject?type=<?php echo $confirmType;?>">	
  		<?php if($confirmType != "insert"){ ?>
  			<input type="hidden" name="subId" value="<?php echo $subId; ?>"/>
  		<?php }?>
  		
  		<input type="hidden" name="subName" value="<?php echo $subName ;?>"/>
  		<input type="hidden" name="subDescript" value="<?php echo $subDescript ;?>"/>
  		<?php if($confirmType == "insert"){ ?>
  			<center><H1>Tạo mới môn học</H1></center>
  		<?php } else { ?>
  			<center><H1>Cập nhật môn học</H1></center>
  		<?php } ?>
	   	<table id="main_table">
	   		<tr>
	   			<td>
	   				Môn học
	   			</td>
	   			<td style="text-align: left;">
	   				<?php echo $subName; ?>
	   			</td>
	   		</tr>
	   		<tr>
	   			<td style="vertical-align:middle;">
	   				Mô tả môn học
	   			</td>
	   			<td style="text-align: left;">
	   				<textarea disabled name="subDescript" cols="50" rows="5"><?php echo $subDescript; ?></textarea>
	   			</td>
	   		</tr>
	   		<tr>
	   			<td colspan="2">
	   				<input class="btn" type="submit" value="Xác Nhận"/>
	   				<input class="btn" type="button" value="Quay Lại" onclick="func_back()"/>
	   			</td>
	   		</tr>
	   	</table>
  	  </form>
   </div>
 
	